//
//  NSString+PostDate.h
//  PostDelivery
//
//  Created by wmz on 2020/6/30.
//  Copyright © 2020 wmz. All rights reserved.
//


#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSString (PostDate)
//格式化日期
+ (NSString*)getFormate:(NSString*)formate date:(NSDate*)date;
//日期字符串转为时间戳 年月日时分秒
+ (NSTimeInterval)getFormate:(NSString*)dateString;
//日期字符串转为日期 年月日时分秒
+ (NSDate*)getFormateDate:(NSString*)dateString;
//判断两个时间戳是否是同一天
+ (BOOL)isSameDay:(long)iTime1 Time2:(long)iTime2;
//判断两个时间戳相差几天
+ (NSInteger)day:(long)iTime1 Time2:(long)iTime2;
//判断过了多久
+ (BOOL)currentTime:(double)time key:(NSString*)key;
/// 相差多少天
+ (NSString*)maxDate:(NSDate*)maxDate minDate:(NSDate*)minDate;
@end

NS_ASSUME_NONNULL_END
